blob: 3fcded8431b443db0bf7a7dc08c9e349b42dcac7 [file] [log] [blame]
Reid Spencereb1d74e2007-04-16 17:36:08 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6,+vfp2 | \
2; RUN: grep fcmpes
Evan Cheng02b985c2007-01-19 09:20:23 +00003
4void %test3(float* %glob, int %X) {
5entry:
6 %tmp = load float* %glob ; <float> [#uses=1]
7 %tmp2 = getelementptr float* %glob, int 2 ; <float*> [#uses=1]
8 %tmp3 = load float* %tmp2 ; <float> [#uses=1]
9 %tmp = setgt float %tmp, %tmp3 ; <bool> [#uses=1]
10 br bool %tmp, label %cond_true, label %UnifiedReturnBlock
11
12cond_true: ; preds = %entry
13 %tmp = tail call int (...)* %bar( ) ; <int> [#uses=0]
14 ret void
15
16UnifiedReturnBlock: ; preds = %entry
17 ret void
18}
19
20declare int %bar(...)