projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d54d8fa
)
Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 18 Dec 2006 01:11:46 +0000
(
01:11
+0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 18 Dec 2006 01:11:46 +0000
(
01:11
+0000)
match.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32647
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Feature/newcasts.ll
patch
|
blob
|
history
diff --git
a/test/Feature/newcasts.ll
b/test/Feature/newcasts.ll
index 6b297961aa7f5c2075fdd70c485b0a2dd86a74da..00919d180dd113167c8025f08fb5125c97dee348 100644
(file)
--- 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 )
+}