blob: 96ba774afc0ff865d9b26ef76360e0d4c327e11c [file] [log] [blame]
Simon Atanasyan2c87f532017-05-22 12:47:43 +00001// RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm -o - %s | FileCheck %s
2
3void __attribute__((micromips)) foo (void) {}
4
5// CHECK: define void @foo() [[MICROMIPS:#[0-9]+]]
6
7void __attribute__((nomicromips)) nofoo (void) {}
8
9// CHECK: define void @nofoo() [[NOMICROMIPS:#[0-9]+]]
10
11// CHECK: attributes [[MICROMIPS]] = { noinline nounwind {{.*}} "micromips" {{.*}} }
12// CHECK: attributes [[NOMICROMIPS]] = { noinline nounwind {{.*}} "nomicromips" {{.*}} }