summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/load-store-i1.s
blob: 70f2f86ad12d2b57faf9cb13e04d46c6ea070602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
	.text
	.file	"/s/llvm/llvm/test/CodeGen/WebAssembly/load-store-i1.ll"
	.globl	load_u_i1_i32
	.type	load_u_i1_i32,@function
load_u_i1_i32:
	.param  	i32
	.result 	i32
	i32.load8_u	$push0=, 0($0)
	return  	$pop0
	.endfunc
.Lfunc_end0:
	.size	load_u_i1_i32, .Lfunc_end0-load_u_i1_i32

	.globl	load_s_i1_i32
	.type	load_s_i1_i32,@function
load_s_i1_i32:
	.param  	i32
	.result 	i32
	i32.load8_u	$push0=, 0($0)
	i32.const	$push1=, 31
	i32.shl 	$push2=, $pop0, $pop1
	i32.const	$push4=, 31
	i32.shr_s	$push3=, $pop2, $pop4
	return  	$pop3
	.endfunc
.Lfunc_end1:
	.size	load_s_i1_i32, .Lfunc_end1-load_s_i1_i32

	.globl	load_u_i1_i64
	.type	load_u_i1_i64,@function
load_u_i1_i64:
	.param  	i32
	.result 	i64
	i64.load8_u	$push0=, 0($0)
	return  	$pop0
	.endfunc
.Lfunc_end2:
	.size	load_u_i1_i64, .Lfunc_end2-load_u_i1_i64

	.globl	load_s_i1_i64
	.type	load_s_i1_i64,@function
load_s_i1_i64:
	.param  	i32
	.result 	i64
	i64.load8_u	$push0=, 0($0)
	i64.const	$push1=, 63
	i64.shl 	$push2=, $pop0, $pop1
	i64.const	$push4=, 63
	i64.shr_s	$push3=, $pop2, $pop4
	return  	$pop3
	.endfunc
.Lfunc_end3:
	.size	load_s_i1_i64, .Lfunc_end3-load_s_i1_i64

	.globl	store_i32_i1
	.type	store_i32_i1,@function
store_i32_i1:
	.param  	i32, i32
	i32.const	$push0=, 1
	i32.and 	$push1=, $1, $pop0
	i32.store8	$drop=, 0($0), $pop1
	return
	.endfunc
.Lfunc_end4:
	.size	store_i32_i1, .Lfunc_end4-store_i32_i1

	.globl	store_i64_i1
	.type	store_i64_i1,@function
store_i64_i1:
	.param  	i32, i64
	i64.const	$push0=, 1
	i64.and 	$push1=, $1, $pop0
	i64.store8	$drop=, 0($0), $pop1
	return
	.endfunc
.Lfunc_end5:
	.size	store_i64_i1, .Lfunc_end5-store_i64_i1