Commit 24f2ac23 authored by Keith Daigle's avatar Keith Daigle Committed by Facebook Github Bot

Update cpuid test to expect failure on non intel cpu

Summary: Found that testing would fail on aarch64 since mmx is an Intel thing.  Changed it to just check for x64.

Reviewed By: yfeldblum

Differential Revision: D6670050

fbshipit-source-id: 6ce4b45bb5ef02d65305636d6ac28be7631ddf1b
parent 3df17628
/*
* Copyright 2017 Facebook, Inc.
* Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -21,7 +21,7 @@
using namespace folly;
TEST(CpuId, Simple) {
// All CPUs should support MMX
CpuId id;
EXPECT_TRUE(id.mmx());
// All x64 CPUs should support MMX
EXPECT_EQ(kIsArchAmd64, id.mmx());
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment