llvm.org GIT mirror llvm / 9959042
new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27803 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vcmpeqfp. &&
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep mfcr
2
3 ; A predicate compare used immediately by a branch should not generate an mfcr.
4
5 void %test(<4 x float>* %A, <4 x float>* %B) {
6 %tmp = load <4 x float>* %A
7 %tmp3 = load <4 x float>* %B
8 %tmp = tail call int %llvm.ppc.altivec.vcmpeqfp.p( int 1, <4 x float> %tmp, <4 x float> %tmp3 )
9 %tmp = seteq int %tmp, 0
10 br bool %tmp, label %cond_true, label %UnifiedReturnBlock
11
12 cond_true:
13 store <4 x float> zeroinitializer, <4 x float>* %B
14 ret void
15
16 UnifiedReturnBlock:
17 ret void
18 }
19
20 declare int %llvm.ppc.altivec.vcmpeqfp.p(int, <4 x float>, <4 x float>)
21