2017-05-22 20:47:43 +08:00
|
|
|
// RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
void __attribute__((micromips)) foo (void) {}
|
|
|
|
|
2020-02-04 02:09:39 +08:00
|
|
|
// CHECK: define void @foo() [[MICROMIPS:#[0-9]+]]
|
2017-05-22 20:47:43 +08:00
|
|
|
|
|
|
|
void __attribute__((nomicromips)) nofoo (void) {}
|
|
|
|
|
2020-02-04 02:09:39 +08:00
|
|
|
// CHECK: define void @nofoo() [[NOMICROMIPS:#[0-9]+]]
|
2017-05-22 20:47:43 +08:00
|
|
|
|
|
|
|
// CHECK: attributes [[MICROMIPS]] = { noinline nounwind {{.*}} "micromips" {{.*}} }
|
|
|
|
// CHECK: attributes [[NOMICROMIPS]] = { noinline nounwind {{.*}} "nomicromips" {{.*}} }
|