1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
3 ; RUN: llc -verify-machineinstrs < %s -code-model=large -relocation-model=pic -mtriple=x86_64--linux | FileCheck %s
5 @.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
7 define void @pr38385() {
8 ; CHECK-LABEL: pr38385:
11 ; CHECK-NEXT: leaq .L0${{.*}}(%rip), %rax
12 ; CHECK-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L0$pb, %rcx
13 ; CHECK-NEXT: addq %rax, %rcx
14 ; CHECK-NEXT: movabsq $.L.str@GOTOFF, %rax
15 ; CHECK-NEXT: addl %eax, %ecx
16 ; CHECK-NEXT: movb %cl, -{{[0-9]+}}(%rsp)
18 %p = alloca i8, align 1
19 store i8 ptrtoint ([2 x i8]* @.str to i8), i8* %p, align 1