blob: fac2bc5e432fe2e39f6324fdce613bac74cdfcc3 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+v6,+vfp2 | \
Jim Grosbache5165492009-11-09 00:11:35 +00002; RUN: grep vcmpe.f32
Evan Cheng02b985c2007-01-19 09:20:23 +00003
Tanya Lattner6263f942008-02-17 20:02:20 +00004define void @test3(float* %glob, i32 %X) {
Evan Cheng02b985c2007-01-19 09:20:23 +00005entry:
Tanya Lattner6263f942008-02-17 20:02:20 +00006 %tmp = load float* %glob ; <float> [#uses=1]
7 %tmp2 = getelementptr float* %glob, i32 2 ; <float*> [#uses=1]
8 %tmp3 = load float* %tmp2 ; <float> [#uses=1]
9 %tmp.upgrd.1 = fcmp ogt float %tmp, %tmp3 ; <i1> [#uses=1]
10 br i1 %tmp.upgrd.1, label %cond_true, label %UnifiedReturnBlock
Evan Cheng02b985c2007-01-19 09:20:23 +000011
Tanya Lattner6263f942008-02-17 20:02:20 +000012cond_true: ; preds = %entry
13 %tmp.upgrd.2 = tail call i32 (...)* @bar( ) ; <i32> [#uses=0]
14 ret void
Evan Cheng02b985c2007-01-19 09:20:23 +000015
Tanya Lattner6263f942008-02-17 20:02:20 +000016UnifiedReturnBlock: ; preds = %entry
17 ret void
Evan Cheng02b985c2007-01-19 09:20:23 +000018}
19
Tanya Lattner6263f942008-02-17 20:02:20 +000020declare i32 @bar(...)