xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/altivec-ord.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s
2*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64-unknown-linux-gnu"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine <4 x i16> @test(<4 x float> %f, <4 x float> %g) {
5*9880d681SAndroid Build Coastguard Workerentry:
6*9880d681SAndroid Build Coastguard Worker	%r = fcmp ord <4 x float> %f, %g
7*9880d681SAndroid Build Coastguard Worker	%s = sext <4 x i1> %r to <4 x i16>
8*9880d681SAndroid Build Coastguard Worker	ret <4 x i16> %s
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine <4 x i16> @test2(<4 x float> %f, <4 x float> %g) {
12*9880d681SAndroid Build Coastguard Workerentry:
13*9880d681SAndroid Build Coastguard Worker	%r = fcmp one <4 x float> %f, %g
14*9880d681SAndroid Build Coastguard Worker	%s = sext <4 x i1> %r to <4 x i16>
15*9880d681SAndroid Build Coastguard Worker	ret <4 x i16> %s
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18