xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/cr1eq.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; ModuleID = 'test.c'
3*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"
4*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc-unknown-freebsd"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
7*9880d681SAndroid Build Coastguard Worker@.str1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @foo() nounwind {
10*9880d681SAndroid Build Coastguard Workerentry:
11*9880d681SAndroid Build Coastguard Worker; CHECK: crxor 6, 6, 6
12*9880d681SAndroid Build Coastguard Worker  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 1)
13*9880d681SAndroid Build Coastguard Worker; CHECK: creqv 6, 6, 6
14*9880d681SAndroid Build Coastguard Worker  %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str1, i32 0, i32 0), double 1.100000e+00)
15*9880d681SAndroid Build Coastguard Worker  ret void
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerdeclare i32 @printf(i8*, ...)
19