Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cranelift/filetests/filetests/egraph/issue-7999.clif
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
test optimize
set opt_level=speed
target x86_64

function u0:11(i8) -> i8 system_v {
block0(v0: i8):
v1 = uextend.i64 v0
v2 = imul_imm v1, 256
v3 = ireduce.i8 v2
return v3
; return v10 ; v10 = 0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the precise-output flag set you have to add explicit filecheck match statement like ; check: return v10 ; v10 = 0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, didn't realize I was missing a check: here, thanks!

}