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
|
2014-06-05 21:29:43 +02:00
|
|
|
; CHECK: call void @nobuiltin() #25
|
2013-08-23 13:53:55 +02:00
|
|
|
ret void;
|
|
|
|
}
|
|
|
|
|
2013-11-18 22:44:03 +01:00
|
|
|
define void @f35() optnone noinline
|
2013-08-23 13:53:55 +02:00
|
|
|
; CHECK: define void @f35() #23
|
|
|
|
{
|
2013-07-18 00:13:44 +02:00
|
|
|
ret void;
|
2013-12-19 03:14:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @f36(i8* inalloca) {
|
|
|
|
; CHECK: define void @f36(i8* inalloca) {
|
|
|
|
ret void
|
2014-05-20 03:23:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
define nonnull i8* @f37(i8* nonnull %a) {
|
|
|
|
; CHECK: define nonnull i8* @f37(i8* nonnull %a) {
|
|
|
|
ret i8* %a
|
2013-07-18 00:13:44 +02:00
|
|
|
}
|
|
|
|
|
2014-06-05 21:29:43 +02:00
|
|
|
define void @f38() unnamed_addr jumptable {
|
|
|
|
; CHECK: define void @f38() unnamed_addr #24
|
|
|
|
call void bitcast (void (i8*)* @f36 to void ()*)()
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
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 }
|
2013-11-18 22:44:03 +01:00
|
|
|
; CHECK: attributes #23 = { noinline optnone }
|
2014-06-05 21:29:43 +02:00
|
|
|
; CHECK: attributes #24 = { jumptable }
|
|
|
|
; CHECK: attributes #25 = { nobuiltin }
|