llvm.org GIT mirror llvm / 0be3ed8
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 Reid Spencer 13 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1818 }
1919
2020
21 ushort "ZExtConst" () {
22 ret ushort trunc ( uint zext ( short 42 to uint) to ushort )
23 }
24
25 short "SExtConst" () {
26 ret short trunc (int sext (ushort 42 to int) to short )
27 }