1 ; RUN: llc -march=ppc64le -code-model=large < %s | FileCheck %s 2 3 target datalayout = "e-m:e-i64:64-n32:64" 4 target triple = "powerpc64le-unknown-linux-gnu" 5 6 @number64 = global i64 10, align 8 7 8 ; CHECK: .abiversion 2 9 10 define i64 @use_toc(i64 %a) nounwind { 11 entry: 12 ; CHECK: .Lfunc_toc[[FN:[0-9]+]]: 13 ; CHECK-NEXT: .quad .TOC.-.Lfunc_gep[[FN]] 14 ; CHECK: use_toc: 15 ; CHECK-NEXT: .L{{.*}}: 16 ; CHECK-NEXT: .Lfunc_gep[[FN]]: 17 ; CHECK-NEXT: ld 2, .Lfunc_toc[[FN]]-.Lfunc_gep[[FN]](12) 18 ; CHECK-NEXT: add 2, 2, 12 19 ; CHECK-NEXT: .Lfunc_lep[[FN]]: 20 ; CHECK-NEXT: .localentry use_toc, .Lfunc_lep[[FN]]-.Lfunc_gep[[FN]] 21 ; CHECK-NEXT: %entry 22 %0 = load i64, i64* @number64, align 8 23 %cmp = icmp eq i64 %0, %a 24 %conv1 = zext i1 %cmp to i64 25 ret i64 %conv1 26 } 27 28