1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; Check that we accept functions with '$' in the name.
3
4; RUN: llc -mtriple=aarch64-unknown-linux < %s | FileCheck --check-prefix=LINUX %s
5; RUN: llc -mtriple=aarch64-apple-darwin < %s | FileCheck --check-prefix=DARWIN %s
6; RUN: llc -mtriple=arm64-apple-macosx < %s | FileCheck --check-prefix=DARWIN %s
7
8define hidden i32 @"_Z54bar$ompvariant$bar"() {
9; LINUX-LABEL: _Z54bar$ompvariant$bar:
10; LINUX:       // %bb.0: // %entry
11; LINUX-NEXT:    mov w0, #2 // =0x2
12; LINUX-NEXT:    ret
13;
14; DARWIN-LABEL: _Z54bar$ompvariant$bar:
15; DARWIN:       ; %bb.0: ; %entry
16; DARWIN-NEXT:    mov w0, #2 ; =0x2
17; DARWIN-NEXT:    ret
18entry:
19  ret i32 2
20}
21