diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-05 18:44:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-05 18:44:00 +0000 |
commit | da081a8e1f295ffdd670f87dba19f470a9a5acaa (patch) | |
tree | 1c0bfd524703fdd2c519154f8e7509f58e965d16 /clang/test/CodeGen/asm.c | |
parent | e30614cfdd8a5b8ceba1b3d56d1aaa1b0845a9ca (diff) | |
download | bcm5719-llvm-da081a8e1f295ffdd670f87dba19f470a9a5acaa.tar.gz bcm5719-llvm-da081a8e1f295ffdd670f87dba19f470a9a5acaa.zip |
fix PR6780, properly handling the IR {|} escapes in inline asm strings.
llvm-svn: 100449
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r-- | clang/test/CodeGen/asm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c index bf1c806a2c4..ace0db9af6d 100644 --- a/clang/test/CodeGen/asm.c +++ b/clang/test/CodeGen/asm.c @@ -135,3 +135,15 @@ int t18(unsigned data) { // CHECK-NEXT: extractvalue // CHECK-NEXT: extractvalue } + + +// PR6780 +int t19(unsigned data) { + int a, b; + + asm("x{abc|def|ghi}z" :"=r"(a): "r"(data)); + return a + b; + // CHECK: t19(i32 + // CHECK: = call {{.*}}asm "x$(abc$|def$|ghi$)z" +} + |