summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/EarlyCSE
diff options
context:
space:
mode:
authorDavid Tweed <david.tweed@arm.com>2013-01-07 13:32:38 +0000
committerDavid Tweed <david.tweed@arm.com>2013-01-07 13:32:38 +0000
commita11edf0ce37229747230cc751498e2f4539386af (patch)
tree0dc906cbd1c2b59e0a86cc88345b81db9e1dd311 /llvm/test/Transforms/EarlyCSE
parent8d1832e09125e1791eb9c8b9707e07bc4bc26865 (diff)
downloadbcm5719-llvm-a11edf0ce37229747230cc751498e2f4539386af.tar.gz
bcm5719-llvm-a11edf0ce37229747230cc751498e2f4539386af.zip
There was a switch fall-through in the parser for textual LLVM that caused
bogus comparison operands to default to eq/oeq. Fix that, fix a couple of tests that accidentally passed and test for bogus comparison opeartors explicitly. llvm-svn: 171733
Diffstat (limited to 'llvm/test/Transforms/EarlyCSE')
-rw-r--r--llvm/test/Transforms/EarlyCSE/commute.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/EarlyCSE/commute.ll b/llvm/test/Transforms/EarlyCSE/commute.ll
index f84a7dd1aae..8cf04d1765b 100644
--- a/llvm/test/Transforms/EarlyCSE/commute.ll
+++ b/llvm/test/Transforms/EarlyCSE/commute.ll
@@ -19,9 +19,9 @@ define void @test2(float %A, float %B, i1* %PA, i1* %PB) {
; CHECK-NEXT: store
; CHECK-NEXT: store
; CHECK-NEXT: ret
- %C = fcmp eq float %A, %B
+ %C = fcmp oeq float %A, %B
store i1 %C, i1* %PA
- %D = fcmp eq float %B, %A
+ %D = fcmp oeq float %B, %A
store i1 %D, i1* %PB
ret void
}
OpenPOWER on IntegriCloud