From: Reid Spencer Date: Mon, 18 Dec 2006 01:11:46 +0000 (+0000) Subject: Add a couple little tests for SExt/ZExt of constants of a sign that doesn't X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0be3ed886c9c22f48f16694268e01cc9ab8d6f0f;p=oota-llvm.git 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 --- diff --git a/test/Feature/newcasts.ll b/test/Feature/newcasts.ll index 6b297961aa7..00919d180dd 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 ) +}