diff options
-rw-r--r-- | test/Feature/newcasts.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Feature/newcasts.ll b/test/Feature/newcasts.ll index 6b29796..00919d1 100644 --- a/test/Feature/newcasts.ll +++ b/test/Feature/newcasts.ll @@ -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 ) +} |