1; RUN: opt < %s -mtriple=x86_64-apple-darwin -mcpu=broadwell -mattr=+avx2 -S | FileCheck %s 2 3; Check that opt can rewrite function attributes target-cpu and target-features 4; using command line options -mcpu and -mattr. 5 6; CHECK: attributes #0 = { nounwind readnone ssp uwtable "target-cpu"="broadwell" "target-features"="+avx2" "use-soft-float"="false" } 7 8define i32 @foo1() #0 { 9entry: 10 ret i32 0 11} 12 13attributes #0 = { nounwind readnone ssp uwtable "target-cpu"="core2" "target-features"="+ssse3,+cx16,+sse,+sse2,+sse3" "use-soft-float"="false" } 14