mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
match. llvm-svn: 32647
This commit is contained in:
parent
9ac4a6b7d0
commit
503ae10c88
@ -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…
x
Reference in New Issue
Block a user