Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm && |
| 2 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6,+vfp2 | grep fcmpes |
| 3 | |
| 4 | void %test3(float* %glob, int %X) { |
| 5 | entry: |
| 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 | |
| 12 | cond_true: ; preds = %entry |
| 13 | %tmp = tail call int (...)* %bar( ) ; <int> [#uses=0] |
| 14 | ret void |
| 15 | |
| 16 | UnifiedReturnBlock: ; preds = %entry |
| 17 | ret void |
| 18 | } |
| 19 | |
| 20 | declare int %bar(...) |