mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:06:21 +01:00
[X86] Fix NSW/NUW typo in avg test (PR44973)
The not_avg_v16i8_wide_constants test shouldn't assume NSW/NUW for the addition of -1 - copy + paste typo from other avg tests
This commit is contained in:
@@ -2915,8 +2915,8 @@ define void @not_avg_v16i8_wide_constants(<16 x i8>* %a, <16 x i8>* %b) nounwind
|
||||
%2 = load <16 x i8>, <16 x i8>* %b
|
||||
%3 = zext <16 x i8> %1 to <16 x i128>
|
||||
%4 = zext <16 x i8> %2 to <16 x i128>
|
||||
%5 = add nuw nsw <16 x i128> %3, <i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1>
|
||||
%6 = add nuw nsw <16 x i128> %5, %4
|
||||
%5 = add <16 x i128> %3, <i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1, i128 -1>
|
||||
%6 = add <16 x i128> %5, %4
|
||||
%7 = lshr <16 x i128> %6, <i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1, i128 1>
|
||||
%8 = trunc <16 x i128> %7 to <16 x i8>
|
||||
store <16 x i8> %8, <16 x i8>* undef, align 4
|
||||
|
||||
Reference in New Issue
Block a user