1 ; RUN: llc -fast-isel=1 -mcpu=ppc64 -mtriple=powerpc64 < %s | FileCheck %s
2 ; Check for non immediate compare insn.
5 source_filename = "test.c"
6 target datalayout = "E-m:e-i64:64-n32:64"
7 target triple = "ppc64"
9 @.str = private unnamed_addr constant [9 x i8] c"correct\0A\00", align 1
10 @.str.1 = private unnamed_addr constant [11 x i8] c"incorrect\0A\00", align 1
12 ; Function Attrs: noinline nounwind optnone uwtable
13 define dso_local signext i32 @myTest() #0 {
14 %1 = alloca i64, align 8
15 %2 = alloca i64, align 8
16 store i64 4660, ptr %1, align 8
17 store i64 140737488355328, ptr %2, align 8
18 %3 = load i64, ptr %1, align 8
19 %4 = icmp ult i64 %3, 140737488355328
20 br i1 %4, label %5, label %7
23 %6 = call signext i32 (ptr, ...) @printf(ptr noundef @.str)
27 %8 = call signext i32 (ptr, ...) @printf(ptr noundef @.str.1)
34 declare signext i32 @printf(ptr noundef, ...) #1
36 ; CHECK-LABEL: myTest:
40 ; CHECK: sldi 3, 3, 47