forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged master:d1bcddb5c1f into amd-gfx:48d7fbb7f94
Local branch amd-gfx 48d7fbb Merged master:6792069a3fd into amd-gfx:cf461db7835 Remote branch master d1bcddb [llvm-objdump][test] Move tests after dc4a6f5
- Loading branch information
Showing
15 changed files
with
68 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes | ||
; RUN: opt -S -passes=attributor --attributor-seed-allow-list asd < %s | FileCheck %s --check-prefixes=CHECK_DISABLED | ||
; RUN: opt -S -passes=attributor --attributor-seed-allow-list AAValueSimplify < %s | FileCheck %s --check-prefixes=CHECK_ENABLED | ||
|
||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | ||
|
||
; Function Attrs: nounwind uwtable | ||
define internal i32 @range_test(i32 %a) #0 { | ||
; CHECK_DISABLED-LABEL: define {{[^@]+}}@range_test | ||
; CHECK_DISABLED-SAME: (i32 [[A:%.*]]) | ||
; CHECK_DISABLED-NEXT: [[TMP1:%.*]] = icmp sgt i32 [[A]], 100 | ||
; CHECK_DISABLED-NEXT: [[TMP2:%.*]] = zext i1 [[TMP1]] to i32 | ||
; CHECK_DISABLED-NEXT: ret i32 [[TMP2]] | ||
; | ||
%1 = icmp sgt i32 %a, 100 | ||
%2 = zext i1 %1 to i32 | ||
ret i32 %2 | ||
} | ||
|
||
; Function Attrs: nounwind uwtable | ||
define i32 @range_use() #0 { | ||
; CHECK_DISABLED-LABEL: define {{[^@]+}}@range_use() | ||
; CHECK_DISABLED-NEXT: [[TMP1:%.*]] = call i32 @range_test(i32 123) | ||
; CHECK_DISABLED-NEXT: ret i32 [[TMP1]] | ||
; | ||
; CHECK_ENABLED-LABEL: define {{[^@]+}}@range_use() | ||
; CHECK_ENABLED-NEXT: ret i32 1 | ||
; | ||
%1 = call i32 @range_test(i32 123) | ||
ret i32 %1 | ||
} | ||
|
||
attributes #0 = { nounwind uwtable noinline } |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.