-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NewGVN] Regenerate test checks (NFC)
Regenerate some test checks in preparation for a patch that fixes #53218.
- Loading branch information
1 parent
ac357a4
commit fb4a836
Showing
3 changed files
with
75 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 | ||
; RUN: opt -passes=newgvn -S < %s | FileCheck %s | ||
|
||
declare void @use(i1) | ||
|
||
define void @test1(float %x, float %y) { | ||
; CHECK-LABEL: define void @test1 | ||
; CHECK-SAME: (float [[X:%.*]], float [[Y:%.*]]) { | ||
; CHECK-NEXT: entry: | ||
; CHECK-NEXT: [[CMP1:%.*]] = fcmp oeq float [[Y]], [[X]] | ||
; CHECK-NEXT: call void @use(i1 [[CMP1]]) | ||
; CHECK-NEXT: call void @use(i1 [[CMP1]]) | ||
; CHECK-NEXT: ret void | ||
; | ||
entry: | ||
%cmp1 = fcmp nnan oeq float %y, %x | ||
%cmp2 = fcmp oeq float %x, %y | ||
call void @use(i1 %cmp1) | ||
call void @use(i1 %cmp2) | ||
ret void | ||
} | ||
|
||
; CHECK-LABEL: define void @test1( | ||
; CHECK: %[[cmp:.*]] = fcmp oeq float %y, %x | ||
; CHECK-NEXT: call void @use(i1 %[[cmp]]) | ||
; CHECK-NEXT: call void @use(i1 %[[cmp]]) | ||
; CHECK-NEXT: ret void |
This file contains 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 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