1 ; RUN: llvm-dis < %s.bc| FileCheck %s
2 ; RUN: verify-uselistorder < %s.bc
4 ; attributes-3.3.ll.bc was generated by passing this file to llvm-as-3.3.
5 ; The test checks that LLVM does not silently misread attributes of
8 define void @f1(i8 zeroext %0)
9 ; CHECK: define void @f1(i8 zeroext %0)
14 define void @f2(i8 signext %0)
15 ; CHECK: define void @f2(i8 signext %0)
20 define void @f3() noreturn
21 ; CHECK: define void @f3() #0
26 define void @f4(i8 inreg %0)
27 ; CHECK: define void @f4(i8 inreg %0)
32 define void @f5(i8* sret(i8) %0)
33 ; CHECK: define void @f5(i8* sret(i8) %0)
38 define void @f6() nounwind
39 ; CHECK: define void @f6() #1
44 define void @f7(i8* noalias %0)
45 ; CHECK: define void @f7(i8* noalias %0)
50 define void @f8(i8* byval(i8) %0)
51 ; CHECK: define void @f8(i8* byval(i8) %0)
56 define void @f9(i8* nest %0)
57 ; CHECK: define void @f9(i8* nest %0)
62 define void @f10() readnone
63 ; CHECK: define void @f10() #2
68 define void @f11() readonly
69 ; CHECK: define void @f11() #3
74 define void @f12() noinline
75 ; CHECK: define void @f12() #4
80 define void @f13() alwaysinline
81 ; CHECK: define void @f13() #5
86 define void @f14() optsize
87 ; CHECK: define void @f14() #6
92 define void @f15() ssp
93 ; CHECK: define void @f15() #7
98 define void @f16() sspreq
99 ; CHECK: define void @f16() #8
104 define void @f17(i8 align 4 %0)
105 ; CHECK: define void @f17(i8 %0)
110 define void @f18(i8* nocapture %0)
111 ; CHECK: define void @f18(i8* nocapture %0)
116 define void @f19() noredzone
117 ; CHECK: define void @f19() #9
122 define void @f20() noimplicitfloat
123 ; CHECK: define void @f20() #10
128 define void @f21() naked
129 ; CHECK: define void @f21() #11
134 define void @f22() inlinehint
135 ; CHECK: define void @f22() #12
140 define void @f23() alignstack(4)
141 ; CHECK: define void @f23() #13
146 define void @f24() returns_twice
147 ; CHECK: define void @f24() #14
152 define void @f25() uwtable
153 ; CHECK: define void @f25() #15
158 define void @f26() nonlazybind
159 ; CHECK: define void @f26() #16
164 define void @f27() sanitize_address
165 ; CHECK: define void @f27() #17
169 define void @f28() sanitize_thread
170 ; CHECK: define void @f28() #18
174 define void @f29() sanitize_memory
175 ; CHECK: define void @f29() #19
180 define void @f30() "cpu"="cortex-a8"
181 ; CHECK: define void @f30() #20
186 define i8 @f31(i8 returned %A)
187 ; CHECK: define i8 @f31(i8 returned %A)
192 define void @f32() sspstrong
193 ; CHECK: define void @f32() #21
198 define void @f33() minsize
199 ; CHECK: define void @f33() #22
204 declare void @nobuiltin()
207 ; CHECK: define void @f34()
209 call void @nobuiltin() nobuiltin
210 ; CHECK: call void @nobuiltin() #23
214 ; CHECK: attributes #0 = { noreturn }
215 ; CHECK: attributes #1 = { nounwind }
216 ; CHECK: attributes #2 = { readnone }
217 ; CHECK: attributes #3 = { readonly }
218 ; CHECK: attributes #4 = { noinline }
219 ; CHECK: attributes #5 = { alwaysinline }
220 ; CHECK: attributes #6 = { optsize }
221 ; CHECK: attributes #7 = { ssp }
222 ; CHECK: attributes #8 = { sspreq }
223 ; CHECK: attributes #9 = { noredzone }
224 ; CHECK: attributes #10 = { noimplicitfloat }
225 ; CHECK: attributes #11 = { naked }
226 ; CHECK: attributes #12 = { inlinehint }
227 ; CHECK: attributes #13 = { alignstack=4 }
228 ; CHECK: attributes #14 = { returns_twice }
229 ; CHECK: attributes #15 = { uwtable }
230 ; CHECK: attributes #16 = { nonlazybind }
231 ; CHECK: attributes #17 = { sanitize_address }
232 ; CHECK: attributes #18 = { sanitize_thread }
233 ; CHECK: attributes #19 = { sanitize_memory }
234 ; CHECK: attributes #20 = { "cpu"="cortex-a8" }
235 ; CHECK: attributes #21 = { sspstrong }
236 ; CHECK: attributes #22 = { minsize }
237 ; CHECK: attributes #23 = { nobuiltin }