2014-12-05 17:27:39 +00:00
|
|
|
# RUN: llvm-mc --triple hexagon -disassemble < %s | FileCheck %s
|
|
|
|
|
|
|
|
0x71 0xdf 0x15 0xfb
|
|
|
|
# CHECK: if (p3) r17 = add(r21, r31)
|
|
|
|
0x11 0xe3 0x15 0x70
|
|
|
|
# CHECK: if (p3) r17 = aslh(r21)
|
|
|
|
0x11 0xe3 0x35 0x70
|
|
|
|
# CHECK: if (p3) r17 = asrh(r21)
|
2014-12-08 17:33:06 +00:00
|
|
|
0x70 0xdf 0x15 0xfd
|
|
|
|
# CHECK: if (p3) r17:16 = combine(r21, r31)
|
|
|
|
0xf0 0xdf 0x15 0xfd
|
|
|
|
# CHECK: if (!p3) r17:16 = combine(r21, r31)
|
2014-12-09 19:23:45 +00:00
|
|
|
0x03 0x40 0x45 0x85 0x70 0xff 0x15 0xfd
|
|
|
|
# CHECK: p3 = r5
|
|
|
|
# CHECK-NEXT: if (p3.new) r17:16 = combine(r21, r31)
|
|
|
|
0x03 0x40 0x45 0x85 0xf0 0xff 0x15 0xfd
|
|
|
|
# CHECK: p3 = r5
|
|
|
|
# CHECK-NEXT: if (!p3.new) r17:16 = combine(r21, r31)
|
2014-12-09 20:23:30 +00:00
|
|
|
0x03 0x40 0x45 0x85 0x70 0xff 0x15 0xfd
|
2014-12-09 20:36:53 +00:00
|
|
|
# CHECK: p3 = r5
|
|
|
|
# CHECK-NEXT: if (p3.new) r17:16 = combine(r21, r31)
|
2014-12-09 20:23:30 +00:00
|
|
|
0x03 0x40 0x45 0x85 0xf0 0xff 0x15 0xfd
|
2014-12-09 20:36:53 +00:00
|
|
|
# CHECK: p3 = r5
|
|
|
|
# CHECK-NEXT: if (!p3.new) r17:16 = combine(r21, r31)
|
2014-12-05 17:27:39 +00:00
|
|
|
0x71 0xdf 0x15 0xf9
|
|
|
|
# CHECK: if (p3) r17 = and(r21, r31)
|
|
|
|
0x71 0xdf 0x35 0xf9
|
|
|
|
# CHECK: if (p3) r17 = or(r21, r31)
|
|
|
|
0x71 0xdf 0x75 0xf9
|
|
|
|
# CHECK: if (p3) r17 = xor(r21, r31)
|
|
|
|
0x71 0xdf 0x35 0xfb
|
|
|
|
# CHECK: if (p3) r17 = sub(r31, r21)
|
|
|
|
0x11 0xe3 0xb5 0x70
|
|
|
|
# CHECK: if (p3) r17 = sxtb(r21)
|
|
|
|
0x11 0xe3 0xf5 0x70
|
|
|
|
# CHECK: if (p3) r17 = sxth(r21)
|
2014-12-09 20:23:30 +00:00
|
|
|
0xb1 0xc2 0x60 0x7e
|
2014-12-09 20:36:53 +00:00
|
|
|
# CHECK: if (p3) r17 = #21
|
2014-12-09 20:23:30 +00:00
|
|
|
0xb1 0xc2 0xe0 0x7e
|
2014-12-09 20:36:53 +00:00
|
|
|
# CHECK: if (!p3) r17 = #21
|
2014-12-09 20:23:30 +00:00
|
|
|
0x03 0x40 0x45 0x85 0xb1 0xe2 0x60 0x7e
|
2014-12-09 20:36:53 +00:00
|
|
|
# CHECK: p3 = r5
|
|
|
|
# CHECK-NEXT: if (p3.new) r17 = #21
|
2014-12-09 20:23:30 +00:00
|
|
|
0x03 0x40 0x45 0x85 0xb1 0xe2 0xe0 0x7e
|
2014-12-09 20:36:53 +00:00
|
|
|
# CHECK: p3 = r5
|
|
|
|
# CHECK-NEXT: if (!p3.new) r17 = #21
|
2014-12-05 17:27:39 +00:00
|
|
|
0x11 0xe3 0x95 0x70
|
|
|
|
# CHECK: if (p3) r17 = zxtb(r21)
|
|
|
|
0x11 0xe3 0xd5 0x70
|
|
|
|
# CHECK: if (p3) r17 = zxth(r21)
|
|
|
|
0x03 0xdf 0x15 0xf2
|
|
|
|
# CHECK: p3 = cmp.eq(r21, r31)
|
2014-12-30 15:44:17 +00:00
|
|
|
0x13 0xdf 0x15 0xf2
|
|
|
|
# CHECK: p3 = !cmp.eq(r21, r31)
|
2014-12-05 17:27:39 +00:00
|
|
|
0x03 0xdf 0x55 0xf2
|
|
|
|
# CHECK: p3 = cmp.gt(r21, r31)
|
2014-12-30 15:44:17 +00:00
|
|
|
0x13 0xdf 0x55 0xf2
|
|
|
|
# CHECK: p3 = !cmp.gt(r21, r31)
|
2014-12-05 17:27:39 +00:00
|
|
|
0x03 0xdf 0x75 0xf2
|
|
|
|
# CHECK: p3 = cmp.gtu(r21, r31)
|
2014-12-30 15:44:17 +00:00
|
|
|
0x13 0xdf 0x75 0xf2
|
|
|
|
# CHECK: p3 = !cmp.gtu(r21, r31)
|
2014-12-30 17:39:24 +00:00
|
|
|
0xf1 0xe3 0x55 0x73
|
|
|
|
# CHECK: r17 = cmp.eq(r21, #31)
|
|
|
|
0xf1 0xe3 0x75 0x73
|
|
|
|
# CHECK: r17 = !cmp.eq(r21, #31)
|
2014-12-05 17:27:39 +00:00
|
|
|
0x11 0xdf 0x55 0xf3
|
2014-12-30 15:44:17 +00:00
|
|
|
# CHECK: r17 = cmp.eq(r21, r31)
|
|
|
|
0x11 0xdf 0x75 0xf3
|
|
|
|
# CHECK: r17 = !cmp.eq(r21, r31)
|