2009-06-30 06:00:57 +08:00
|
|
|
// FIXME: For now this test just checks that llvm-mc works. Once we have .macro,
|
|
|
|
// .if, and .abort we can write a better test (without resorting to miles of
|
|
|
|
// greps).
|
2009-06-30 04:37:27 +08:00
|
|
|
|
2009-06-30 06:00:57 +08:00
|
|
|
// RUN: llvm-mc %s > %t
|
2009-06-30 04:37:27 +08:00
|
|
|
|
|
|
|
.byte !1 + 2
|
|
|
|
.byte !0
|
|
|
|
.byte ~0
|
|
|
|
.byte -1
|
|
|
|
.byte +1
|
|
|
|
.byte 1 + 2
|
|
|
|
.byte 1 & 3
|
|
|
|
.byte 4 / 2
|
|
|
|
.byte 4 / -2
|
|
|
|
.byte 1 == 1
|
|
|
|
.byte 1 == 0
|
|
|
|
.byte 1 > 0
|
|
|
|
.byte 1 >= 1
|
|
|
|
.byte 1 < 2
|
|
|
|
.byte 1 <= 1
|
|
|
|
.byte 4 % 3
|
|
|
|
.byte 2 * 2
|
|
|
|
.byte 2 != 2
|
|
|
|
.byte 2 <> 2
|
|
|
|
.byte 1 | 2
|
|
|
|
.byte 1 << 1
|
|
|
|
.byte 2 >> 1
|
|
|
|
.byte ~0 >> 1
|
|
|
|
.byte 3 - 2
|
|
|
|
.byte 1 ^ 3
|
|
|
|
.byte 1 && 2
|
|
|
|
.byte 3 && 0
|
|
|
|
.byte 1 || 2
|
|
|
|
.byte 0 || 0
|
|
|
|
|
|
|
|
.set c, 10
|
|
|
|
.byte c + 1
|
|
|
|
|