summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 21:30:15 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 21:30:15 +0000
commit0a448fbca323014f1754cb16a56d698cdb18d258 (patch)
tree6b2b2c025ef9c60421e610db2a1bc02a54890629 /llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll
parentdf7be5105a124233d063bfb55dfe4b80f88e0481 (diff)
downloadbcm5719-llvm-0a448fbca323014f1754cb16a56d698cdb18d258.tar.gz
bcm5719-llvm-0a448fbca323014f1754cb16a56d698cdb18d258.zip
IR: Implement uselistorder assembly directives
Implement `uselistorder` and `uselistorder_bb` assembly directives, which allow the use-list order to be recovered when round-tripping to assembly. This is the bulk of PR20515. llvm-svn: 216025
Diffstat (limited to 'llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll')
-rw-r--r--llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll b/llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll
new file mode 100644
index 00000000000..7bdc40037af
--- /dev/null
+++ b/llvm/test/Assembler/invalid-uselistorder-indexes-ordered.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+; CHECK: error: expected uselistorder indexes to change the order
+@global = global i32 0
+@alias1 = alias i32* @global
+@alias2 = alias i32* @global
+@alias3 = alias i32* @global
+uselistorder i32* @global, { 0, 1, 2 }
OpenPOWER on IntegriCloud