@@ -12,7 +12,6 @@ aot_compile_op_i32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
12
12
{
13
13
LLVMValueRef value ;
14
14
15
- #if !defined(BUILD_TARGET_XTENSA )
16
15
if (comp_ctx -> is_indirect_mode
17
16
&& aot_intrinsic_check_capability (comp_ctx , "i32.const" )) {
18
17
WASMValue wasm_value ;
@@ -24,7 +23,6 @@ aot_compile_op_i32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
24
23
}
25
24
}
26
25
else
27
- #endif
28
26
{
29
27
value = I32_CONST ((uint32 )i32_const );
30
28
CHECK_LLVM_CONST (value );
@@ -43,7 +41,6 @@ aot_compile_op_i64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
43
41
{
44
42
LLVMValueRef value ;
45
43
46
- #if !defined(BUILD_TARGET_XTENSA )
47
44
if (comp_ctx -> is_indirect_mode
48
45
&& aot_intrinsic_check_capability (comp_ctx , "i64.const" )) {
49
46
WASMValue wasm_value ;
@@ -55,7 +52,6 @@ aot_compile_op_i64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
55
52
}
56
53
}
57
54
else
58
- #endif
59
55
{
60
56
value = I64_CONST ((uint64 )i64_const );
61
57
CHECK_LLVM_CONST (value );
@@ -74,7 +70,6 @@ aot_compile_op_f32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
74
70
{
75
71
LLVMValueRef alloca , value ;
76
72
77
- #if !defined(BUILD_TARGET_XTENSA )
78
73
if (comp_ctx -> is_indirect_mode
79
74
&& aot_intrinsic_check_capability (comp_ctx , "f32.const" )) {
80
75
WASMValue wasm_value ;
@@ -87,9 +82,6 @@ aot_compile_op_f32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
87
82
PUSH_F32 (value );
88
83
}
89
84
else if (!isnan (f32_const )) {
90
- #else
91
- if (!isnan (f32_const )) {
92
- #endif
93
85
value = F32_CONST (f32_const );
94
86
CHECK_LLVM_CONST (value );
95
87
PUSH_F32 (value );
@@ -131,7 +123,6 @@ aot_compile_op_f64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
131
123
{
132
124
LLVMValueRef alloca , value ;
133
125
134
- #if !defined(BUILD_TARGET_XTENSA )
135
126
if (comp_ctx -> is_indirect_mode
136
127
&& aot_intrinsic_check_capability (comp_ctx , "f64.const" )) {
137
128
WASMValue wasm_value ;
@@ -144,9 +135,6 @@ aot_compile_op_f64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
144
135
PUSH_F64 (value );
145
136
}
146
137
else if (!isnan (f64_const )) {
147
- #else
148
- if (!isnan (f64_const )) {
149
- #endif
150
138
value = F64_CONST (f64_const );
151
139
CHECK_LLVM_CONST (value );
152
140
PUSH_F64 (value );
0 commit comments