AMDGPU: Add pass to detect used kernel features
[oota-llvm.git] / test / CodeGen / Generic / 2005-12-12-ExpandSextInreg.ll
index 20ef2d9f0634cd594f44f24f3f26a45a0e39c3a5..349540fb384e465c4c31ff0c8fab7b964d62f81f 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | llc
+; RUN: llc < %s
 
-long %test(long %A) {
-       %B = cast long %A to sbyte
-       %C = cast sbyte %B to long
-       ret long %C
+define i64 @test(i64 %A) {
+        %B = trunc i64 %A to i8         ; <i8> [#uses=1]
+        %C = sext i8 %B to i64          ; <i64> [#uses=1]
+        ret i64 %C
 }