| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | |
| ; RUN: llc -mtriple=x86_64-linux-gnu -fast-isel -fast-isel-abort=1 < %s -o - | FileCheck %s | |
| define i64 @ptrtoaddr(ptr %p) { | |
| ; CHECK-LABEL: ptrtoaddr: | |
| ; CHECK: # %bb.0: | |
| ; CHECK-NEXT: movq %rdi, %rax | |
| ; CHECK-NEXT: retq | |
| %addr = ptrtoaddr ptr %p to i64 | |
| ret i64 %addr | |
| } |