mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d54d8fa45a
commit
0be3ed886c
@ -19,3 +19,10 @@ void "NewCasts" (short %x) {
|
||||
}
|
||||
|
||||
|
||||
ushort "ZExtConst" () {
|
||||
ret ushort trunc ( uint zext ( short 42 to uint) to ushort )
|
||||
}
|
||||
|
||||
short "SExtConst" () {
|
||||
ret short trunc (int sext (ushort 42 to int) to short )
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user