Debian Codegraph @

llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm.ll

raw
1 ; RUN: llc -mtriple=x86_64 < %s | FileCheck %s --check-prefix=PIC
2 ; RUN: llc -mtriple=x86_64-windows < %s | FileCheck %s --check-prefix=WIN
3
4 define i64 @i64_test(i64 %i) nounwind readnone {
5 %loc = alloca i64
6 %j = load i64, i64 * %loc
7 %r = add i64 %i, %j
8 ret i64 %r
9 }
10
11 define i64 @i32_test(i32 %i) nounwind readnone {
12 %loc = alloca i32
13 %j = load i32, i32 * %loc
14 %r = add i32 %i, %j
15 %ext = zext i32 %r to i64
16 ret i64 %ext
17 }
18
19 define i64 @i16_test(i16 %i) nounwind readnone {
20 %loc = alloca i16
21 %j = load i16, i16 * %loc
22 %r = add i16 %i, %j
23 %ext = zext i16 %r to i64
24 ret i64 %ext
25 }
26
27 define i64 @i8_test(i8 %i) nounwind readnone {
28 %loc = alloca i8
29 %j = load i8, i8 * %loc
30 %r = add i8 %i, %j
31 %ext = zext i8 %r to i64
32 ret i64 %ext
33 }