[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / regression / bug28168.s
blobe65414856e722a6bb9b14708ac1bd147b89e4ada
1 // RUN: llvm-mc -arch=amdgcn -mcpu=bonaire -show-encoding %s | FileCheck %s --check-prefix=CI
2 // RUN: llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck %s --check-prefix=VI
4 v_mqsad_pk_u16_u8 v[2:3], s[0:1], 1, v[254:255]
5 // CI: [0x02,0x00,0xe6,0xd2,0x00,0x02,0xf9,0x07]
6 // VI: [0x02,0x00,0xe6,0xd1,0x00,0x02,0xf9,0x07]
8 v_qsad_pk_u16_u8 v[2:3], v[0:1], 1, s[0:1]
9 // CI: [0x02,0x00,0xe4,0xd2,0x00,0x03,0x01,0x00]
10 // VI: [0x02,0x00,0xe5,0xd1,0x00,0x03,0x01,0x00]