diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-10-10 18:55:14 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-10-10 18:55:14 +0000 |
| commit | b47e1d033cd3519d4a50779e07563a8dc2c0a21a (patch) | |
| tree | 4a3833dbb419b6a729d83c7796add5e1b30ff607 /test/CodeGen/ARM | |
| parent | 55b5708b6bbffc79cf133c31faa51d144bfc5d4a (diff) | |
add double <-> int conversion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
| -rw-r--r-- | test/CodeGen/ARM/fpconv.ll | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/CodeGen/ARM/fpconv.ll b/test/CodeGen/ARM/fpconv.ll index 310a1150d7..c20cf62f6a 100644 --- a/test/CodeGen/ARM/fpconv.ll +++ b/test/CodeGen/ARM/fpconv.ll @@ -2,14 +2,26 @@ ; RUN: llvm-as < %s | llc -march=arm | grep fcvtds && ; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd -float %f(double %x) { +float %f1(double %x) { entry: %tmp1 = cast double %x to float ret float %tmp1 } -double %g(float %x) { +double %f2(float %x) { entry: %tmp1 = cast float %x to double ret double %tmp1 } + +int %f3(float %x) { +entry: + %tmp = cast float %x to int + ret int %tmp +} + +int %f4(double %x) { +entry: + %tmp = cast double %x to int + ret int %tmp +} |
