1 # RUN: llvm-mc -triple hexagon -disassemble < %s | FileCheck %s
2 # Hexagon Programmer's Reference Manual 11.1.1 ALU32/ALU
6 # CHECK: r17 = add(r21,#31)
8 # CHECK: r17 = add(r21,r31)
10 # CHECK: r17 = add(r21,r31):sat
14 # CHECK: r17 = and(r21,#31)
16 # CHECK: r17 = or(r21,#31)
18 # CHECK: r17 = and(r21,r31)
20 # CHECK: r17 = or(r21,r31)
22 # CHECK: r17 = xor(r21,r31)
24 # CHECK: r17 = and(r21,~r31)
26 # CHECK: r17 = or(r21,~r31)
34 # CHECK: r17 = sub(#21,r31)
36 # CHECK: r17 = sub(r31,r21)
38 # CHECK: r17 = sub(r31,r21):sat
42 # CHECK: r17 = sxtb(r31)
58 # Vector add halfwords
60 # CHECK: r17 = vaddh(r21,r31)
62 # CHECK: r17 = vaddh(r21,r31):sat
64 # CHECK: r17 = vadduh(r21,r31):sat
66 # Vector average halfwords
68 # CHECK: r17 = vavgh(r21,r31)
70 # CHECK: r17 = vavgh(r21,r31):rnd
72 # CHECK: r17 = vnavgh(r31,r21)
74 # Vector subtract halfwords
76 # CHECK: r17 = vsubh(r31,r21)
78 # CHECK: r17 = vsubh(r31,r21):sat
80 # CHECK: r17 = vsubuh(r31,r21):sat
84 # CHECK: r17 = zxth(r21)