diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/copy.ssa | 15 | ||||
| -rw-r--r-- | test/gvn1.ssa (renamed from test/gvn-live-dead.ssa) | 0 | ||||
| -rw-r--r-- | test/gvn2.ssa (renamed from test/non0jnz.ssa) | 0 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/copy.ssa b/test/copy.ssa new file mode 100644 index 0000000..5c2a4d0 --- /dev/null +++ b/test/copy.ssa @@ -0,0 +1,15 @@ +export function w $f() { +@start + %x0 =w loadsb $a + # the extension must not be eliminated + # even though the load already extended + %x1 =l extsb %x0 + %c =w ceql %x1, -1 + ret %c +} + +# >>> driver +# char a = -1; +# extern int f(); +# int main() { return !(f() == 1); } +# <<< diff --git a/test/gvn-live-dead.ssa b/test/gvn1.ssa index d47f05b..d47f05b 100644 --- a/test/gvn-live-dead.ssa +++ b/test/gvn1.ssa diff --git a/test/non0jnz.ssa b/test/gvn2.ssa index 33f9a96..33f9a96 100644 --- a/test/non0jnz.ssa +++ b/test/gvn2.ssa |
