ldc/tests/codegen/asm_output.d
Dan Olson bb9128f911 Fix codegen/asm_output test for RPi 1 (armv6) (#1972)
armv6 instruction set is a little different.
2017-01-19 20:48:04 +01:00

9 lines
314 B
D

// RUN: %ldc -c -output-ll -of=%t.ll %s && FileCheck %s --check-prefix LLVM < %t.ll
// RUN: %ldc -c -output-s -of=%t.s %s && FileCheck %s --check-prefix ASM < %t.s
int foo() {
return 42;
// Try to keep these very simple checks independent of architecture:
// LLVM: ret i32 42
// ASM: {{(\$|#|.long )}}42
}