projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow inline %assert inside of complex immediates.
[b43-tools.git]
/
assembler
/
test.asm
diff --git
a/assembler/test.asm
b/assembler/test.asm
index 54dafed419445b9f360c82fe5be076f6e1b4f1ea..cb0d3bdf95a42ab85ac3b4d136667ddd59e5d2e4 100644
(file)
--- a/
assembler/test.asm
+++ b/
assembler/test.asm
@@
-28,9
+28,17
@@
#define ECOND_MAC_ON (0x20 | 4)
#define ECOND_MAC_ON (0x20 | 4)
+%assert ((((1))) == ((((2 - 1) & 0xFF))))
+%assert ((1 == 2) || (1 == (0xFF & 1)))
+%assert (1 != (~1))
+%assert ((1 == (2 - 1)) && (2 == 2))
.text
.text
+ /* Inline assertion inside of a complex immediate.
+ * The %assert() expression will always return zero. */
+ mov (1 + (%assert(1 == ((1 + 2) - 2)))), r0
+
label:
/* ADD instructions */
add r0,r1,r2 /* add */
label:
/* ADD instructions */
add r0,r1,r2 /* add */