Rafael Espindola | fb6abd7 | 2006-10-10 14:26:06 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=arm && |
| 2 | ; RUN: llvm-as < %s | llc -march=arm | grep movlt && |
| 3 | ; RUN: llvm-as < %s | llc -march=arm | grep moveq && |
| 4 | ; RUN: llvm-as < %s | llc -march=arm | grep movgt && |
| 5 | ; RUN: llvm-as < %s | llc -march=arm | grep movge && |
| 6 | ; RUN: llvm-as < %s | llc -march=arm | grep movle |
| 7 | |
| 8 | int %f1(float %a) { |
| 9 | entry: |
| 10 | %tmp = setlt float %a, 1.000000e+00 ; <bool> [#uses=1] |
| 11 | %tmp = cast bool %tmp to int ; <int> [#uses=1] |
| 12 | ret int %tmp |
| 13 | } |
| 14 | |
| 15 | int %f2(float %a) { |
| 16 | entry: |
| 17 | %tmp = seteq float %a, 1.000000e+00 ; <bool> [#uses=1] |
| 18 | %tmp = cast bool %tmp to int ; <int> [#uses=1] |
| 19 | ret int %tmp |
| 20 | } |
| 21 | |
| 22 | int %f3(float %a) { |
| 23 | entry: |
| 24 | %tmp = setgt float %a, 1.000000e+00 ; <bool> [#uses=1] |
| 25 | %tmp = cast bool %tmp to int ; <int> [#uses=1] |
| 26 | ret int %tmp |
| 27 | } |
| 28 | |
| 29 | int %f4(float %a) { |
| 30 | entry: |
| 31 | %tmp = setge float %a, 1.000000e+00 ; <bool> [#uses=1] |
| 32 | %tmp = cast bool %tmp to int ; <int> [#uses=1] |
| 33 | ret int %tmp |
| 34 | } |
| 35 | |
| 36 | int %f5(float %a) { |
| 37 | entry: |
| 38 | %tmp = setle float %a, 1.000000e+00 ; <bool> [#uses=1] |
| 39 | %tmp = cast bool %tmp to int ; <int> [#uses=1] |
| 40 | ret int %tmp |
| 41 | } |