Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: test/Transforms/NaCl/expand-varargs-attrs.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/Transforms/NaCl/expand-varargs-attrs.ll
diff --git a/test/Transforms/NaCl/expand-varargs-attrs.ll b/test/Transforms/NaCl/expand-varargs-attrs.ll
index 5fd30dd75b5d898bee2f1177c7648e2871a5271b..17061abd3cefb83d380526662f040a6de7a9b8f5 100644
--- a/test/Transforms/NaCl/expand-varargs-attrs.ll
+++ b/test/Transforms/NaCl/expand-varargs-attrs.ll
@@ -16,7 +16,7 @@ define void @func_with_arg_attrs(%MyStruct* byval, ...) {
declare void @take_struct_arg(%MyStruct* byval %s, ...)
define void @call_with_arg_attrs(%MyStruct* %s) {
- call void (%MyStruct*, ...)* @take_struct_arg(%MyStruct* byval %s)
+ call void (%MyStruct*, ...) @take_struct_arg(%MyStruct* byval %s)
ret void
}
; CHECK-LABEL: @call_with_arg_attrs(
@@ -25,7 +25,7 @@ define void @call_with_arg_attrs(%MyStruct* %s) {
; The "byval" attribute here should be dropped.
define i32 @pass_struct_via_vararg1(%MyStruct* %s) {
- %result = call i32 (i32, ...)* @varargs_func(i32 111, %MyStruct* byval %s)
+ %result = call i32 (i32, ...) @varargs_func(i32 111, %MyStruct* byval %s)
ret i32 %result
}
; CHECK-LABEL: @pass_struct_via_vararg1(
@@ -34,7 +34,7 @@ define i32 @pass_struct_via_vararg1(%MyStruct* %s) {
; The "byval" attribute here should be dropped.
define i32 @pass_struct_via_vararg2(%MyStruct* %s) {
- %result = call i32 (i32, ...)* @varargs_func(i32 111, i32 2, %MyStruct* byval %s)
+ %result = call i32 (i32, ...) @varargs_func(i32 111, i32 2, %MyStruct* byval %s)
ret i32 %result
}
; CHECK-LABEL: @pass_struct_via_vararg2(
@@ -43,7 +43,7 @@ define i32 @pass_struct_via_vararg2(%MyStruct* %s) {
; Check that return attributes such as "signext" are preserved.
define i32 @call_with_return_attr() {
- %result = call signext i32 (i32, ...)* @varargs_func(i32 111, i64 222)
+ %result = call signext i32 (i32, ...) @varargs_func(i32 111, i64 222)
ret i32 %result
}
; CHECK-LABEL: @call_with_return_attr(
@@ -52,7 +52,7 @@ define i32 @call_with_return_attr() {
; Check that the "readonly" function attribute is preserved.
define i32 @call_readonly() {
- %result = call i32 (i32, ...)* @varargs_func(i32 111, i64 222) readonly
+ %result = call i32 (i32, ...) @varargs_func(i32 111, i64 222) readonly
ret i32 %result
}
; CHECK-LABEL: @call_readonly(
@@ -62,7 +62,7 @@ define i32 @call_readonly() {
; Check that the "tail" attribute gets removed, because the callee
; reads space alloca'd by the caller.
define i32 @tail_call() {
- %result = tail call i32 (i32, ...)* @varargs_func(i32 111, i64 222)
+ %result = tail call i32 (i32, ...) @varargs_func(i32 111, i64 222)
ret i32 %result
}
; CHECK-LABEL: @tail_call(

Powered by Google App Engine
This is Rietveld 408576698