2012-05-28 17:45:43 +02:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
; PR12696
|
|
|
|
|
|
|
|
define void @f1(i8 zeroext)
|
|
|
|
; CHECK: define void @f1(i8 zeroext)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f2(i8 signext)
|
|
|
|
; CHECK: define void @f2(i8 signext)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f3() noreturn
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f3() #0
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f4(i8 inreg)
|
|
|
|
; CHECK: define void @f4(i8 inreg)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f5(i8* sret)
|
|
|
|
; CHECK: define void @f5(i8* sret)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f6() nounwind
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f6() #1
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f7(i8* noalias)
|
|
|
|
; CHECK: define void @f7(i8* noalias)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f8(i8* byval)
|
|
|
|
; CHECK: define void @f8(i8* byval)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f9(i8* nest)
|
|
|
|
; CHECK: define void @f9(i8* nest)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f10() readnone
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f10() #2
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f11() readonly
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f11() #3
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f12() noinline
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f12() #4
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f13() alwaysinline
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f13() #5
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f14() optsize
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f14() #6
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f15() ssp
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f15() #7
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f16() sspreq
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f16() #8
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f17(i8 align 4)
|
|
|
|
; CHECK: define void @f17(i8 align 4)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f18(i8* nocapture)
|
|
|
|
; CHECK: define void @f18(i8* nocapture)
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f19() noredzone
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f19() #9
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f20() noimplicitfloat
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f20() #10
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f21() naked
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f21() #11
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f22() inlinehint
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f22() #12
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f23() alignstack(4)
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f23() #13
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f24() returns_twice
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f24() #14
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f25() uwtable
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f25() #15
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f26() nonlazybind
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f26() #16
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
2013-02-26 07:58:09 +01:00
|
|
|
define void @f27() sanitize_address
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f27() #17
|
2012-05-28 17:45:43 +02:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
2013-02-26 07:58:09 +01:00
|
|
|
define void @f28() sanitize_thread
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f28() #18
|
2013-02-11 09:13:54 +01:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
2013-02-26 07:58:09 +01:00
|
|
|
define void @f29() sanitize_memory
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f29() #19
|
2013-02-11 09:13:54 +01:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
2013-02-12 10:14:20 +01:00
|
|
|
|
|
|
|
define void @f30() "cpu"="cortex-a8"
|
2013-02-20 08:21:42 +01:00
|
|
|
; CHECK: define void @f30() #20
|
2013-02-12 10:14:20 +01:00
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
2013-07-18 00:13:44 +02:00
|
|
|
define i8 @f31(i8 returned %A)
|
|
|
|
; CHECK: define i8 @f31(i8 returned %A)
|
|
|
|
{
|
|
|
|
ret i8 %A;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f32() sspstrong
|
|
|
|
; CHECK: define void @f32() #21
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @f33() minsize
|
|
|
|
; CHECK: define void @f33() #22
|
|
|
|
{
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @nobuiltin()
|
|
|
|
|
|
|
|
define void @f34()
|
|
|
|
; CHECK: define void @f34()
|
|
|
|
{
|
|
|
|
call void @nobuiltin() nobuiltin
|
|
|
|
; CHECK: call void @nobuiltin() #23
|
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
2013-02-12 10:14:20 +01:00
|
|
|
; CHECK: attributes #0 = { noreturn }
|
|
|
|
; CHECK: attributes #1 = { nounwind }
|
|
|
|
; CHECK: attributes #2 = { readnone }
|
|
|
|
; CHECK: attributes #3 = { readonly }
|
|
|
|
; CHECK: attributes #4 = { noinline }
|
|
|
|
; CHECK: attributes #5 = { alwaysinline }
|
|
|
|
; CHECK: attributes #6 = { optsize }
|
|
|
|
; CHECK: attributes #7 = { ssp }
|
|
|
|
; CHECK: attributes #8 = { sspreq }
|
|
|
|
; CHECK: attributes #9 = { noredzone }
|
|
|
|
; CHECK: attributes #10 = { noimplicitfloat }
|
|
|
|
; CHECK: attributes #11 = { naked }
|
|
|
|
; CHECK: attributes #12 = { inlinehint }
|
|
|
|
; CHECK: attributes #13 = { alignstack=4 }
|
|
|
|
; CHECK: attributes #14 = { returns_twice }
|
|
|
|
; CHECK: attributes #15 = { uwtable }
|
|
|
|
; CHECK: attributes #16 = { nonlazybind }
|
2013-02-26 07:58:09 +01:00
|
|
|
; CHECK: attributes #17 = { sanitize_address }
|
|
|
|
; CHECK: attributes #18 = { sanitize_thread }
|
|
|
|
; CHECK: attributes #19 = { sanitize_memory }
|
2013-02-12 10:14:20 +01:00
|
|
|
; CHECK: attributes #20 = { "cpu"="cortex-a8" }
|
2013-07-18 00:13:44 +02:00
|
|
|
; CHECK: attributes #21 = { sspstrong }
|
|
|
|
; CHECK: attributes #22 = { minsize }
|
|
|
|
; CHECK: attributes #23 = { nobuiltin }
|