This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
23 lines
453 B
Text
23 lines
453 B
Text
/-!
|
|
This test is a regression test for constant folding of uint literals.
|
|
-/
|
|
|
|
/--
|
|
trace: [Compiler.IR] [result]
|
|
def mwe : u8 :=
|
|
let x_1 : u8 := 1;
|
|
ret x_1
|
|
-/
|
|
#guard_msgs in
|
|
set_option trace.compiler.ir.result true in
|
|
def mwe : Bool :=
|
|
let x8 := 1
|
|
let y8 := 2
|
|
let x16 := 1
|
|
let y16 := 2
|
|
let x32 := 1
|
|
let y32 := 2
|
|
let x64 := 1
|
|
let y64 := 2
|
|
x8 + y8 < 4 && x16 + y16 < 4 && x32 + y32 < 4 && x64 + y64 < 4
|
|
|