projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARM] Do not generate Tag_DIV_use=AllowDIVExt when hardware div is non-optional:...
[oota-llvm.git]
/
test
/
Feature
/
testvarargs.ll
diff --git
a/test/Feature/testvarargs.ll
b/test/Feature/testvarargs.ll
index 79c9000265578e16130db027893d71aa7b9f7944..a73b7ecd7d6066f173b2001eac42686b09956f86 100644
(file)
--- a/
test/Feature/testvarargs.ll
+++ b/
test/Feature/testvarargs.ll
@@
-1,12
+1,12
@@
-implementation
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
-declare int "printf"(sbyte*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
-int "testvarar"()
-begin
- cast int 0 to sbyte*
- call int(sbyte*, ...) %printf(sbyte * %0, int 12, sbyte 42);
- ret int %0
-end
+declare i32 @printf(i8*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
+define i32 @testvarar() {
+ call i32 (i8*, ...)* @printf( i8* null, i32 12, i8 42 ) ; <i32>:1 [#uses=1]
+ ret i32 %1
+}