brintos

brintos / llvm-project-archived public Read only

0
0
Text · 560 B · bfaf2d9 Raw
22 lines · c
1// REQUIRES: m68k-registered-target2// RUN: %clang -target m68k -S %s -o - | FileCheck %s3 4// Test special escaped character in inline assembly5void escaped() {6  // '.' -> '.'7  // CHECK: move.l #66, %d18  __asm__ ("move%.l #66, %%d1" ::);9  // '#' -> '#'10  // CHECK: move.l #66, %d111  __asm__ ("move.l %#66, %%d1" ::);12  // '/' -> '%'13  // CHECK: move.l #66, %d114  __asm__ ("move.l #66, %/d1" ::);15  // '$' -> 's'16  // CHECK: muls %d0, %d117  __asm__ ("mul%$ %%d0, %%d1" ::);18  // '&' -> 'd'19  // CHECK: move.l %d0, %d120  __asm__ ("move.l %%%&0, %%d1" ::);21}22