moved crates in lib/ to src/, renamed crates, modified some files' text (#660)

moved crates in lib/ to src/, renamed crates, modified some files' text (#660)
This commit is contained in:
lazypassion
2019-01-28 18:56:54 -05:00
committed by Dan Gohman
parent 54959cf5bb
commit 747ad3c4c5
508 changed files with 94 additions and 92 deletions

View File

@@ -0,0 +1,54 @@
test preopt
target x86_64
function %brz_fold() -> i32 {
ebb0:
v0 = bconst.b1 false
brz v0, ebb2
jump ebb1
ebb1:
v1 = iconst.i32 42
return v1
ebb2:
v2 = iconst.i32 24
return v2
}
; sameln: function %brz_fold
; nextln: ebb0:
; nextln: v0 = bconst.b1 false
; nextln: jump ebb2
; nextln:
; nextln: ebb1:
; nextln: v1 = iconst.i32 42
; nextln: return v1
; nextln:
; nextln: ebb2:
; nextln: v2 = iconst.i32 24
; nextln: return v2
; nextln: }
function %brnz_fold() -> i32 {
ebb0:
v0 = bconst.b1 true
brnz v0, ebb2
jump ebb1
ebb1:
v1 = iconst.i32 42
return v1
ebb2:
v2 = iconst.i32 24
return v2
}
; sameln: function %brnz_fold
; nextln: ebb0:
; nextln: v0 = bconst.b1 true
; nextln: jump ebb2
; nextln:
; nextln: ebb1:
; nextln: v1 = iconst.i32 42
; nextln: return v1
; nextln:
; nextln: ebb2:
; nextln: v2 = iconst.i32 24
; nextln: return v2
; nextln: }

View File

@@ -0,0 +1,36 @@
test preopt
target x86_64
function %iadd_fold() -> i32 {
ebb0:
v0 = iconst.i32 37
v1 = iconst.i32 5
v2 = iadd v0, v1
v3 = iconst.i32 8
v4 = iadd v2, v3
return v4
}
; sameln: function %iadd_fold
; nextln: ebb0:
; nextln: v0 = iconst.i32 37
; nextln: v1 = iconst.i32 5
; nextln: v2 = iconst.i32 42
; nextln: v3 = iconst.i32 8
; nextln: v4 = iconst.i32 50
; nextln: return v4
; nextln: }
function %isub_fold() -> i32 {
ebb0:
v0 = iconst.i32 42
v1 = iconst.i32 1
v2 = isub v0, v1
return v2
}
; sameln: function %isub_fold
; nextln: ebb0:
; nextln: v0 = iconst.i32 42
; nextln: v1 = iconst.i32 1
; nextln: v2 = iconst.i32 41
; nextln: return v2
; nextln: }