-
Notifications
You must be signed in to change notification settings - Fork 14.6k
[gfx1250][SDAG] Lower unsafe bf16 divisions #149628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,298 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3 | ||
; RUN: llc -mtriple=amdgcn -mcpu=gfx1250 -mattr=+real-true16 -denormal-fp-math-f32=preserve-sign < %s | FileCheck -check-prefixes=GFX1250-TRUE16 %s | ||
; RUN: llc -mtriple=amdgcn -mcpu=gfx1250 -mattr=-real-true16 -denormal-fp-math-f32=preserve-sign < %s | FileCheck -check-prefixes=GFX1250-FAKE16 %s | ||
|
||
/* TODO: Support safe bf16 fdiv lowering. | ||
define bfloat @v_fdiv_bf16(bfloat %x, bfloat %y) { | ||
%fdiv = fdiv bfloat %x, %y | ||
ret bfloat %fdiv | ||
} | ||
*/ | ||
|
||
define bfloat @v_rcp_bf16(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rcp_bf16: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rcp_bf16: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%fdiv = fdiv bfloat 1.0, %x | ||
ret bfloat %fdiv | ||
} | ||
|
||
define bfloat @v_rcp_bf16_abs(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rcp_bf16_abs: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e64 v0.l, |v0.l| | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rcp_bf16_abs: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e64 v0, |v0| | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%fabs = call bfloat @llvm.fabs.bf16(bfloat %x) | ||
%fdiv = fdiv bfloat 1.0, %fabs | ||
ret bfloat %fdiv | ||
} | ||
|
||
define bfloat @v_rcp_bf16_afn(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rcp_bf16_afn: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rcp_bf16_afn: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%fdiv = fdiv afn bfloat 1.0, %x | ||
ret bfloat %fdiv | ||
} | ||
|
||
define bfloat @v_rcp_bf16_neg(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rcp_bf16_neg: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e64 v0.l, -v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rcp_bf16_neg: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e64 v0, -v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%fdiv = fdiv bfloat -1.0, %x | ||
ret bfloat %fdiv | ||
} | ||
|
||
; TODO: Support lowering to v_rsq_bf16. | ||
define bfloat @v_rsq_bf16(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rsq_bf16: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rsq_bf16: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract bfloat @llvm.sqrt.bf16(bfloat %x) | ||
%fdiv = fdiv contract bfloat 1.0, %sqrt | ||
ret bfloat %fdiv | ||
} | ||
|
||
; TODO: Support lowering to v_rsq_bf16. | ||
define bfloat @v_rsq_bf16_neg(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rsq_bf16_neg: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e64 v0.l, -v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rsq_bf16_neg: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e64 v0, -v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract bfloat @llvm.sqrt.bf16(bfloat %x) | ||
%fdiv = fdiv contract bfloat -1.0, %sqrt | ||
ret bfloat %fdiv | ||
} | ||
|
||
; TODO: Support lowering to v_rsq_bf16. | ||
define <2 x bfloat> @v_rsq_bf16_multi_use(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rsq_bf16_multi_use: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_mov_b16_e32 v1.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(TRANS32_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v1.l, v1.l | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v1.h, v1.l | ||
; GFX1250-TRUE16-NEXT: v_nop | ||
; GFX1250-TRUE16-NEXT: v_mov_b16_e32 v1.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | instid1(VALU_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_mov_b32_e32 v0, v1 | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rsq_bf16_multi_use: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v1, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | instskip(SKIP_1) | instid1(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v1, v1 | ||
; GFX1250-FAKE16-NEXT: v_nop | ||
; GFX1250-FAKE16-NEXT: v_perm_b32 v0, v1, v0, 0x5040100 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract bfloat @llvm.sqrt.bf16(bfloat %x) | ||
%fdiv = fdiv contract bfloat 1.0, %sqrt | ||
%r = insertelement <2 x bfloat> zeroinitializer, bfloat %x, i32 0 | ||
%r2 = insertelement <2 x bfloat> %r, bfloat %fdiv, i32 1 | ||
ret <2 x bfloat> %r2 | ||
} | ||
|
||
; TODO: Support lowering to v_rsq_bf16. | ||
define bfloat @v_rsq_bf16_missing_contract0(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rsq_bf16_missing_contract0: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rsq_bf16_missing_contract0: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call bfloat @llvm.sqrt.bf16(bfloat %x) | ||
%fdiv = fdiv contract bfloat 1.0, %sqrt | ||
ret bfloat %fdiv | ||
} | ||
|
||
; TODO: Support lowering to v_rsq_bf16. | ||
define bfloat @v_rsq_bf16_missing_contract1(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_rsq_bf16_missing_contract1: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rsq_bf16_missing_contract1: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract bfloat @llvm.sqrt.bf16(bfloat %x) | ||
%fdiv = fdiv bfloat 1.0, %sqrt | ||
ret bfloat %fdiv | ||
} | ||
|
||
; TODO: Support lowering to v_rsq_bf16. | ||
define bfloat @v_neg_rsq_bf16_missing_contract1(bfloat %x) { | ||
; GFX1250-TRUE16-LABEL: v_neg_rsq_bf16_missing_contract1: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e64 v0.l, -v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_neg_rsq_bf16_missing_contract1: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e64 v0, -v0 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract bfloat @llvm.sqrt.bf16(bfloat %x) | ||
%fdiv = fdiv bfloat -1.0, %sqrt | ||
ret bfloat %fdiv | ||
} | ||
|
||
define <2 x bfloat> @v_rsq_v2bf16(<2 x bfloat> %a) { | ||
; GFX1250-TRUE16-LABEL: v_rsq_v2bf16: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.h, v0.h | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_2) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.h, v0.h | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_rsq_v2bf16: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_lshrrev_b32_e32 v1, 16, v0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(TRANS32_DEP_2) | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v1, v1 | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_2) | instskip(SKIP_1) | instid1(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e32 v1, v1 | ||
; GFX1250-FAKE16-NEXT: v_nop | ||
; GFX1250-FAKE16-NEXT: v_perm_b32 v0, v1, v0, 0x5040100 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract <2 x bfloat> @llvm.sqrt.v2bf16(<2 x bfloat> %a) | ||
%fdiv = fdiv contract <2 x bfloat> <bfloat 1.0, bfloat 1.0>, %sqrt | ||
ret <2 x bfloat> %fdiv | ||
} | ||
|
||
define <2 x bfloat> @v_neg_rsq_v2bf16(<2 x bfloat> %a) { | ||
; GFX1250-TRUE16-LABEL: v_neg_rsq_v2bf16: | ||
; GFX1250-TRUE16: ; %bb.0: | ||
; GFX1250-TRUE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-TRUE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.h, v0.h | ||
; GFX1250-TRUE16-NEXT: v_sqrt_bf16_e32 v0.l, v0.l | ||
; GFX1250-TRUE16-NEXT: s_delay_alu instid0(TRANS32_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_2) | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e64 v0.h, -v0.h | ||
; GFX1250-TRUE16-NEXT: v_rcp_bf16_e64 v0.l, -v0.l | ||
; GFX1250-TRUE16-NEXT: s_set_pc_i64 s[30:31] | ||
; | ||
; GFX1250-FAKE16-LABEL: v_neg_rsq_v2bf16: | ||
; GFX1250-FAKE16: ; %bb.0: | ||
; GFX1250-FAKE16-NEXT: s_wait_loadcnt_dscnt 0x0 | ||
; GFX1250-FAKE16-NEXT: s_wait_kmcnt 0x0 | ||
; GFX1250-FAKE16-NEXT: v_lshrrev_b32_e32 v1, 16, v0 | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v0, v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(TRANS32_DEP_2) | ||
; GFX1250-FAKE16-NEXT: v_sqrt_bf16_e32 v1, v1 | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e64 v0, -v0 | ||
; GFX1250-FAKE16-NEXT: s_delay_alu instid0(TRANS32_DEP_2) | instskip(SKIP_1) | instid1(TRANS32_DEP_1) | ||
; GFX1250-FAKE16-NEXT: v_rcp_bf16_e64 v1, -v1 | ||
; GFX1250-FAKE16-NEXT: v_nop | ||
; GFX1250-FAKE16-NEXT: v_perm_b32 v0, v1, v0, 0x5040100 | ||
; GFX1250-FAKE16-NEXT: s_set_pc_i64 s[30:31] | ||
%sqrt = call contract <2 x bfloat> @llvm.sqrt.v2bf16(<2 x bfloat> %a) | ||
%fdiv = fdiv contract <2 x bfloat> <bfloat -1.0, bfloat -1.0>, %sqrt | ||
ret <2 x bfloat> %fdiv | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file has fewer tests compared to the downstream version because those are not supported at this moment.