[llvm] c5a0c37 - [Xtensa,test] Fix div.ll after #99981
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 10:30:35 PDT 2024
Author: Fangrui Song
Date: 2024-08-22T10:30:31-07:00
New Revision: c5a0c37b4279c2925b03993cd86a83bfc053f0cd
URL: https://github.com/llvm/llvm-project/commit/c5a0c37b4279c2925b03993cd86a83bfc053f0cd
DIFF: https://github.com/llvm/llvm-project/commit/c5a0c37b4279c2925b03993cd86a83bfc053f0cd.diff
LOG: [Xtensa,test] Fix div.ll after #99981
Added:
Modified:
llvm/test/CodeGen/Xtensa/div.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/Xtensa/div.ll b/llvm/test/CodeGen/Xtensa/div.ll
index e10e976fb1b386..8d51c571efb4c7 100644
--- a/llvm/test/CodeGen/Xtensa/div.ll
+++ b/llvm/test/CodeGen/Xtensa/div.ll
@@ -363,8 +363,7 @@ define i8 @sdiv8_constant(i8 %a) nounwind {
define i8 @sdiv8_pow2(i8 %a) nounwind {
; XTENSA-LABEL: sdiv8_pow2:
; XTENSA: slli a8, a2, 24
-; XTENSA-NEXT: srai a8, a8, 24
-; XTENSA-NEXT: srli a8, a8, 12
+; XTENSA-NEXT: srai a8, a8, 31
; XTENSA-NEXT: movi a9, 7
; XTENSA-NEXT: and a8, a8, a9
; XTENSA-NEXT: add a8, a2, a8
@@ -473,8 +472,7 @@ define i32 @sdiv_pow2_2(i32 %a) nounwind {
define i16 @sdiv16_pow2(i16 %a) nounwind {
; XTENSA-LABEL: sdiv16_pow2:
; XTENSA: slli a8, a2, 16
-; XTENSA-NEXT: srai a8, a8, 16
-; XTENSA-NEXT: extui a8, a8, 28, 4
+; XTENSA-NEXT: srai a8, a8, 31
; XTENSA-NEXT: movi a9, 7
; XTENSA-NEXT: and a8, a8, a9
; XTENSA-NEXT: add a8, a2, a8
More information about the llvm-commits
mailing list