mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 21:24:32 -04:00
[Inliner] Add test for merging of min-legal-vector-width function attribute.
This should have been added in r337844, but apparently was I failed to 'git add' the file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
; RUN: opt %s -inline -S | FileCheck %s
|
||||
|
||||
define internal void @innerSmall() "min-legal-vector-width"="128" {
|
||||
ret void
|
||||
}
|
||||
|
||||
define internal void @innerLarge() "min-legal-vector-width"="512" {
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @outerNoAttribute() {
|
||||
call void @innerLarge()
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @outerConflictingAttributeSmall() "min-legal-vector-width"="128" {
|
||||
call void @innerLarge()
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @outerConflictingAttributeLarge() "min-legal-vector-width"="512" {
|
||||
call void @innerSmall()
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define void @outerNoAttribute() #0
|
||||
; CHECK: define void @outerConflictingAttributeSmall() #0
|
||||
; CHECK: define void @outerConflictingAttributeLarge() #0
|
||||
; CHECK: attributes #0 = { "min-legal-vector-width"="512" }
|
||||
Reference in New Issue
Block a user