1 ; RUN: llc -verify-machineinstrs -code-model=large < %s | FileCheck %s
3 target datalayout = "e-m:e-i64:64-n32:64"
4 target triple = "powerpc64le-unknown-linux-gnu"
6 @number64 = global i64 10, align 8
10 define i64 @use_toc(i64 %a) nounwind {
12 ; CHECK: .Lfunc_toc[[FN:[0-9]+]]:
13 ; CHECK-NEXT: .quad .TOC.-.Lfunc_gep[[FN]]
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]]
22 %0 = load i64, i64* @number64, align 8
23 %cmp = icmp eq i64 %0, %a
24 %conv1 = zext i1 %cmp to i64