summaryrefslogtreecommitdiff
path: root/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
commitd80d608f768e0083122f74df80465effcd70f076 (patch)
tree1d76a9e6d723dac5d6f4b8e86154694dc52abbc5 /test/Transforms/EarlyCSE
parente97165901ee51216b22b808041b10febbb4afa5e (diff)
downloadllvm-d80d608f768e0083122f74df80465effcd70f076.tar.gz
llvm-d80d608f768e0083122f74df80465effcd70f076.tar.bz2
llvm-d80d608f768e0083122f74df80465effcd70f076.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/EarlyCSE')
-rw-r--r--test/Transforms/EarlyCSE/commute.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/EarlyCSE/commute.ll b/test/Transforms/EarlyCSE/commute.ll
index f84a7dd1aa..8cf04d1765 100644
--- a/test/Transforms/EarlyCSE/commute.ll
+++ b/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
}