2016-07-16 10:24:59 +08:00
|
|
|
# RUN: llc -run-pass none -o - %s | FileCheck %s
|
2015-05-29 06:41:12 +08:00
|
|
|
# This test ensures that the MIR parser parses machine functions correctly.
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define i32 @foo() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32 @bar() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
2015-06-16 08:10:47 +08:00
|
|
|
|
|
|
|
define i32 @func() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32 @func2() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
2017-04-12 03:32:41 +08:00
|
|
|
|
2015-05-29 06:41:12 +08:00
|
|
|
...
|
|
|
|
---
|
|
|
|
# CHECK: name: foo
|
2015-06-16 08:10:47 +08:00
|
|
|
# CHECK-NEXT: alignment:
|
|
|
|
# CHECK-NEXT: exposesReturnsTwice: false
|
2015-06-25 03:56:10 +08:00
|
|
|
# CHECK: ...
|
2015-05-29 06:41:12 +08:00
|
|
|
name: foo
|
|
|
|
...
|
|
|
|
---
|
|
|
|
# CHECK: name: bar
|
2015-06-16 08:10:47 +08:00
|
|
|
# CHECK-NEXT: alignment:
|
|
|
|
# CHECK-NEXT: exposesReturnsTwice: false
|
2015-06-25 03:56:10 +08:00
|
|
|
# CHECK: ...
|
2015-05-29 06:41:12 +08:00
|
|
|
name: bar
|
|
|
|
...
|
2015-06-16 08:10:47 +08:00
|
|
|
---
|
|
|
|
# CHECK: name: func
|
|
|
|
# CHECK-NEXT: alignment: 8
|
|
|
|
# CHECK-NEXT: exposesReturnsTwice: false
|
2015-06-25 03:56:10 +08:00
|
|
|
# CHECK: ...
|
2015-06-16 08:10:47 +08:00
|
|
|
name: func
|
|
|
|
alignment: 8
|
|
|
|
...
|
|
|
|
---
|
|
|
|
# CHECK: name: func2
|
|
|
|
# CHECK-NEXT: alignment: 16
|
|
|
|
# CHECK-NEXT: exposesReturnsTwice: true
|
2015-06-25 03:56:10 +08:00
|
|
|
# CHECK: ...
|
2015-06-16 08:10:47 +08:00
|
|
|
name: func2
|
|
|
|
alignment: 16
|
|
|
|
exposesReturnsTwice: true
|
|
|
|
...
|