]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/X86/large-pic-string.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGen / X86 / large-pic-string.ll
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2
3 ; RUN: llc -verify-machineinstrs < %s -code-model=large -relocation-model=pic -mtriple=x86_64--linux | FileCheck %s
4
5 @.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
6
7 define void @pr38385() {
8 ; CHECK-LABEL: pr38385:
9 ; CHECK:       # %bb.0:
10 ; CHECK-NEXT:  .L0$pb:
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)
17 ; CHECK-NEXT:    retq
18   %p = alloca i8, align 1
19   store i8 ptrtoint ([2 x i8]* @.str to i8), i8* %p, align 1
20   ret void
21 }