1 ; RUN: llc < %s | FileCheck %s --check-prefix=CHECK-SMALL
2 ; RUN: llc --code-model=medium < %s | FileCheck %s --check-prefix=CHECK-MEDIUM
4 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
7 @a = external dso_local global i32, align 4
11 define void @foo(i64 %b) {
12 ; CHECK-MEDIUM: cmpq %rax, %rdi
13 ; CHECK-SMALL: cmpq $a, %rdi
15 %cmp = icmp eq i64 %b, ptrtoint (ptr @a to i64)
16 br i1 %cmp, label %if.then, label %if.end
18 if.then: ; preds = %entry
22 if.end: ; preds = %if.then, %entry