mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
33230c9911
out of r246201). llvm-svn: 246203
18 lines
474 B
Plaintext
18 lines
474 B
Plaintext
# RUN: Kaleidoscope-Ch3 < %s 2>&1 | FileCheck %s
|
|
|
|
# Test basic parsing and IR generation.
|
|
def foo(x) x + 1;
|
|
foo(1);
|
|
|
|
# CHECK: define double @foo(double %x) {
|
|
# CHECK-NEXT: entry:
|
|
# CHECK-NEXT: %addtmp = fadd double %x, 1.000000e+00
|
|
# CHECK-NEXT: ret double %addtmp
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK: define double @__anon_expr() {
|
|
# CHECK-NEXT: entry:
|
|
# CHECK-NEXT: %calltmp = call double @foo(double 1.000000e+00)
|
|
# CHECK-NEXT: ret double %calltmp
|
|
# CHECK-NEXT: }
|