[PATCH] D21038: AMDGPU/AsmParser: Add support for parsing symbol operands

Artem Tamazov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 04:17:41 PDT 2016


artem.tamazov accepted this revision.
artem.tamazov added a comment.

Please address comment about simple tests and go ahead.


================
Comment at: test/MC/AMDGPU/global-expr.s:7-8
@@ +6,4 @@
+
+// Parse a global expression
+s_mov_b32 s0, global
+// VI: s_mov_b32 s0, global ; encoding: [0xff,0x00,0x80,0xbe,A,A,A,A]
----------------
I woudl be nice to add also tests for simple absolute expressions, like

```
.set foo 4
s_mov_b32 s0, foo+2 // should load 6 to s0
```



http://reviews.llvm.org/D21038





More information about the llvm-commits mailing list