1 ; RUN: not llc < %s -march=amdgcn -mcpu=hawaii
2 ; RUN: not llc < %s -march=amdgcn -mcpu=tonga
3 ; RUN: not llc < %s -march=amdgcn -mcpu=gfx900
4 ; RUN: not llc < %s -march=amdgcn -mcpu=gfx1010
6 ; TODO: Add GlobalISel tests, currently it silently miscompiles as GISel does not handle BF16 at all.
8 ; We only have storage-only BF16 support so check codegen fails if we attempt to do operations on bfloats.
10 define void @test_fneg(bfloat %a, ptr addrspace(1) %out) {
11 %result = fneg bfloat %a
12 store bfloat %result, ptr addrspace(1) %out
16 define void @test_fabs(bfloat %a, ptr addrspace(1) %out) {
17 %result = fabs bfloat %a
18 store bfloat %result, ptr addrspace(1) %out
22 define void @test_add(bfloat %a, bfloat %b, ptr addrspace(1) %out) {
23 %result = fadd bfloat %a, %b
24 store bfloat %result, ptr addrspace(1) %out
28 define void @test_mul(bfloat %a, bfloat %b, ptr addrspace(1) %out) {
29 %result = fmul bfloat %a, %b
30 store bfloat %result, ptr addrspace(1) %out