1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=EG --check-prefix=FUNC
2 ; RUN: llc < %s -march=r600 -mcpu=cayman | FileCheck %s --check-prefix=EG --check-prefix=FUNC
3 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=SI --check-prefix=FUNC
5 ; FIXME: Move this test into mul_uint24.ll once i64 mul is supported.
8 ; Multiply with 24-bit inputs and 64-bit output
9 ; FUNC_LABEL: @mul24_i64
13 ; FIXME: SI support 24-bit mulhi
15 define void @mul24_i64(i64 addrspace(1)* %out, i64 %a, i64 %b) {
18 %a_24 = lshr i64 %0, 40
20 %b_24 = lshr i64 %1, 40
21 %2 = mul i64 %a_24, %b_24
22 store i64 %2, i64 addrspace(1)* %out