aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-02-28 18:45:27 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-02-28 18:45:27 +0000
commitc24ab5c654debe47d5693e287d4dc2e151c0ba0e (patch)
tree949e0f74e8b9091d9853abf6b2a4cf62a6bc5439 /test/CodeGen/ARM
parentf222e595c0137b8a9571408257f7000c2fb95473 (diff)
downloadexternal_llvm-c24ab5c654debe47d5693e287d4dc2e151c0ba0e.zip
external_llvm-c24ab5c654debe47d5693e287d4dc2e151c0ba0e.tar.gz
external_llvm-c24ab5c654debe47d5693e287d4dc2e151c0ba0e.tar.bz2
Fix a typo which cause dag combine crash. rdar://9059537.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r--test/CodeGen/ARM/fcopysign.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fcopysign.ll b/test/CodeGen/ARM/fcopysign.ll
index d30e3eb..11b96b8 100644
--- a/test/CodeGen/ARM/fcopysign.ll
+++ b/test/CodeGen/ARM/fcopysign.ll
@@ -40,5 +40,19 @@ entry:
ret double %1
}
+; rdar://9059537
+define i32 @test4() ssp {
+entry:
+; SOFT: test4:
+; SOFT: vcvt.f32.f64 s0,
+; SOFT: vmov.i32 [[REG4:(d[0-9]+)]], #0x80000000
+; SOFT: vbic [[REG5:(d[0-9]+))], d0, [[REG4]]
+; SOFT: vorr d0, [[REG4]], [[REG5]]
+ %call80 = tail call double @copysign(double 1.000000e+00, double undef)
+ %conv81 = fptrunc double %call80 to float
+ %tmp88 = bitcast float %conv81 to i32
+ ret i32 %tmp88
+}
+
declare double @copysign(double, double) nounwind
declare float @copysignf(float, float) nounwind