[llvm] r247292 - [Bitcode] Add xfail test for PR24755 (uselistorder)
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 09:02:24 PDT 2015
Author: vedantk
Date: Thu Sep 10 11:02:24 2015
New Revision: 247292
URL: http://llvm.org/viewvc/llvm-project?rev=247292&view=rev
Log:
[Bitcode] Add xfail test for PR24755 (uselistorder)
This test stresses verify-uselistorder. PR24755 is caused by our
ignoring uses when they occur in the function personality slot, the
prologue data slot, or the prefix data slot.
Added:
llvm/trunk/test/Bitcode/use-list-order2.ll
Added: llvm/trunk/test/Bitcode/use-list-order2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/use-list-order2.ll?rev=247292&view=auto
==============================================================================
--- llvm/trunk/test/Bitcode/use-list-order2.ll (added)
+++ llvm/trunk/test/Bitcode/use-list-order2.ll Thu Sep 10 11:02:24 2015
@@ -0,0 +1,57 @@
+; RUN: verify-uselistorder %s
+; XFAIL: *
+
+; Test 1
+ at g1 = global i8 0
+
+declare void @llvm.donothing() nounwind readnone
+
+define void @f.no_personality1() personality i8 0 {
+ invoke void @llvm.donothing() to label %normal unwind label %exception
+exception:
+ %cleanup = landingpad i8 cleanup
+ br label %normal
+normal:
+ ret void
+}
+
+; Test 2
+ at g2 = global i8 -1
+ at g3 = global i8 -1
+
+define void @f.no_personality2() personality i8 -1 {
+ invoke void @llvm.donothing() to label %normal unwind label %exception
+exception:
+ %cleanup = landingpad i8 cleanup
+ br label %normal
+normal:
+ ret void
+}
+
+; Test 3
+declare void @f1() prefix i32 1
+
+define void @test1() {
+ %t1 = alloca half ; Implicit i32 1 used here.
+ %t2 = alloca float
+ ret void
+}
+
+; Test 4
+declare void @f2() prefix i32 2
+
+define void @test2(i32* %word) {
+ %cmpxchg.0 = cmpxchg i32* %word, i32 0, i32 2 monotonic monotonic
+ %cmpxchg.1 = cmpxchg i32* %word, i32 0, i32 2 acq_rel monotonic
+ ret void
+}
+
+; Test 5
+ at g4 = global i32 3
+ at g5 = global i32 3
+declare void @test3() prefix i32 3
+
+; Test 6
+ at g6 = global i32 4
+ at g7 = global i32 4
+declare void @c() prologue i32 4
More information about the llvm-commits
mailing list