64 lines · plain
1; RUN: llvm-ml -filetype=s %s /Fo - /DT1=test1 /D T2=test2 /Dtest5=def /Dtest6 | FileCheck %s2 3.code4 5t1:6 ret7; CHECK-NOT: t1:8; CHECK-LABEL: test1:9; CHECK-NOT: t1:10 11t2:12 ret13; CHECK-NOT: t2:14; CHECK-LABEL: test2:15; CHECK-NOT: t2:16 17t3:18ifdef t119 xor eax, eax20endif21 ret22; CHECK-LABEL: t3:23; CHECK: xor eax, eax24; CHECK: ret25 26t4:27ifdef undefined28 xor eax, eax29elseifdef t230 xor ebx, ebx31endif32 ret33; CHECK-LABEL: t4:34; CHECK-NOT: xor eax, eax35; CHECK: xor ebx, ebx36; CHECK: ret37 38% t5_original BYTE "&test5"39; CHECK-LABEL: t5_original:40; CHECK-NEXT: .byte 10041; CHECK-NEXT: .byte 10142; CHECK-NEXT: .byte 10243 44test5 textequ <redef>45 46% t5_changed BYTE "&test5"47; CHECK-LABEL: t5_changed:48; CHECK-NEXT: .byte 11449; CHECK-NEXT: .byte 10150; CHECK-NEXT: .byte 10051; CHECK-NEXT: .byte 10152; CHECK-NEXT: .byte 10253 54t6:55ifdef test656 xor eax, eax57endif58 ret59; CHECK-LABEL: t6:60; CHECK: xor eax, eax61; CHECK: ret62 63end64