forked from OSchip/llvm-project
22 lines
716 B
LLVM
22 lines
716 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -code-model=large -relocation-model=pic -mtriple=x86_64--linux | FileCheck %s
|
|
|
|
@.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
|
|
|
|
define void @pr38385() {
|
|
; CHECK-LABEL: pr38385:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: .Ltmp0:
|
|
; CHECK-NEXT: leaq {{.*}}(%rip), %rax
|
|
; CHECK-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.Ltmp0, %rcx
|
|
; CHECK-NEXT: addq %rcx, %rax
|
|
; CHECK-NEXT: movabsq $.L.str@GOTOFF, %rcx
|
|
; CHECK-NEXT: addl %ecx, %eax
|
|
; CHECK-NEXT: movb %al, -{{[0-9]+}}(%rsp)
|
|
; CHECK-NEXT: retq
|
|
%p = alloca i8, align 1
|
|
store i8 ptrtoint ([2 x i8]* @.str to i8), i8* %p, align 1
|
|
ret void
|
|
}
|