projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MC: When parsing a variable reference, substitute absolute variables immediately
[oota-llvm.git]
/
test
/
MC
/
AsmParser
/
variables.s
diff --git a/test/MC/AsmParser/variables.s
b/test/MC/AsmParser/variables.s
new file mode 100644
(file)
index 0000000..
86fea27
--- /dev/null
+++ b/
test/MC/AsmParser/variables.s
@@ -0,0
+1,15
@@
+// RUN: llvm-mc %s
+
+ .data
+ t0_v0 = 1
+ t0_v1 = t0_v0
+ .if t0_v1 != 1
+ .abort "invalid value"
+ .endif
+
+ t1_v0 = 1
+ t1_v1 = t0_v0
+ t1_v0 = 2
+ .if t0_v1 != 1
+ .abort "invalid value"
+ .endif