[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / inline-imm-inv2pi.s
blobe5ecfa293ba4d7081b1bac0b4af21e46c0c142c5
1 // RUN: llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefix=SI %s
2 // RUN: llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI %s
4 // The value inv2pi should not assert on any targets, but is
5 // printed differently depending on whether it's a legal inline
6 // immediate or not.
8 // SI: v_cvt_f32_f16_e32 v0, 0x3118 ; encoding: [0xff,0x16,0x00,0x7e,0x18,0x31,0x00,0x00]
9 // VI: v_cvt_f32_f16_e32 v0, 0.15915494 ; encoding: [0xf8,0x16,0x00,0x7e]
10 v_cvt_f32_f16_e32 v0, 0x3118