Debian Codegraph @

llvm/test/CodeGen/PowerPC/altivec-ord.ll

raw
1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s
2 target triple = "powerpc64-unknown-linux-gnu"
3
4 define <4 x i16> @test(<4 x float> %f, <4 x float> %g) {
5 entry:
6 %r = fcmp ord <4 x float> %f, %g
7 %s = sext <4 x i1> %r to <4 x i16>
8 ret <4 x i16> %s
9 }
10
11 define <4 x i16> @test2(<4 x float> %f, <4 x float> %g) {
12 entry:
13 %r = fcmp one <4 x float> %f, %g
14 %s = sext <4 x i1> %r to <4 x i16>
15 ret <4 x i16> %s
16 }
17