mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
24 lines
839 B
LLVM
24 lines
839 B
LLVM
; Test that llvm-reduce can remove uninteresting attributes.
|
|
;
|
|
; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
|
|
; RUN: FileCheck --check-prefix=CHECK-FINAL %s < %t
|
|
|
|
; CHECK-INTERESTINGNESS: declare
|
|
; CHECK-INTERESTINGNESS-SAME: "attr0"
|
|
; CHECK-INTERESTINGNESS-SAME: void @f0
|
|
; CHECK-INTERESTINGNESS-SAME: i32
|
|
; CHECK-INTERESTINGNESS-SAME: i32
|
|
; CHECK-INTERESTINGNESS-SAME: "attr6"
|
|
; CHECK-INTERESTINGNESS-SAME: #0
|
|
|
|
; CHECK-FINAL: declare "attr0" void @f0(i32, i32 "attr6") #0
|
|
|
|
declare "attr0" "attr1" "attr2" void @f0(i32 "attr3" "attr4" "attr5", i32 "attr6" "attr7" "attr8") #0
|
|
|
|
; CHECK-INTERESTINGNESS: attributes #0 = {
|
|
; CHECK-INTERESTINGNESS-SAME: "attr10"
|
|
|
|
; CHECK-FINAL: attributes #0 = { "attr10" }
|
|
|
|
attributes #0 = { "attr9" "attr10" "attr11" }
|